using System;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {
    /// <summary>
    /// Event arguments for RootElementAdded event.
    /// </summary>
    /// <typeparam name="TNode">Type of the node.</typeparam>
    public class RootElementAddedEventArgs<TNode> : EventArgs
        where TNode : BigXmlNode {
        /// <summary>
        /// Gets or sets the root.
        /// </summary>
        /// <value>The root.</value>
        public TNode Root { get; private set; }

        /// <summary>
        ///Initializes a new instance of the <see cref="RootElementAddedEventArgs{TNode}"/> class.
        /// </summary>
        /// <param name="root"></param>
        public RootElementAddedEventArgs(TNode root) {
            this.Root = root;
        }
    }
}